<!DOCTYPE html>
<html class="x-admin-sm">

<head>
    <meta charset="UTF-8">
    <title>欢迎页面-X-admin2.2</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
    <link rel="stylesheet" href="../../css/font.css">
    <link rel="stylesheet" href="../../css/xadmin.css">
    <script src="../../lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="../../js/xadmin.js"></script>
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body>
<div class="x-nav">
			<span class="layui-breadcrumb">
            <a href="../index.html">首页</a>
            <a>
              <cite>团队</cite></a>
          </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"
       onclick="location.reload()" title="刷新">
        <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
</div>
<div style="padding-top: 15px">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">
                    <span>我的团队</span>
                </div>
                <div class="layui-card-body ">
                    <table class="layui-hide" id="demo" lay-filter="test"></table>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    layui.use(['laydate', 'form', 'laypage', 'layer', 'table', 'element', 'carousel'], function () {
        var form = layui.form;
        var layer = layui.layer;
        var table = layui.table;

        //实例化一个table
        table.render({
            elem: '#demo'
            , height: 300
            ,url: 'http://localhost:8080/team/list' //数据接口
            , title: '团队表'
            , page: true //开启分页
            , toolbar: true //开启工具栏，此处显示默认图标，可以自定义模板，详见文档
            ,defaultToolbar:['filter', 'exports']
            , cols: [[ //表头
                {
                    field: 'teamName',
                    title: '团队名',
                    width: '15%',
                    sort: true,
                    minWidth:100
                }, {
                    field: 'teamDesc',
                    title: '团队描述',
                    width: '15%',
                    sort: true,
                    minWidth:100
                },{
                    field: 'teamProject',
                    title: '所属项目',
                    width: '15%',
                    sort: true,
                    minWidth:100
                }, {
                    field: 'teamProgramer',
                    title: '项目经理',
                    width: '10%',
                    minWidth: 100,
                    sort: true
                }, {
                    field: 'teamDeveloper',
                    title: '项目开发',
                    width: '20%',
                    sort: true
                }, {
                    field: 'teamTester',
                    title: '项目测试',
                    width: '20%',
                    sort: true
                }, {
                    field: 'teamStatus',
                    title: '团队状态',
                    width: '10%',
                    sort: true,
                }
            ]]
        });
    });
</script>
</body>

</html>